package com.java.study.server;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

import java.util.Scanner;

@SpringBootApplication
@EnableEurekaServer
public class Application {

    public static void main(String[] args) {

        System.out.println("输入你要选择的环境 slave1,slave2");
        Scanner scan = new Scanner(System.in);
        String profiles = scan.nextLine();
        //---  我是服务中心
        new SpringApplicationBuilder(Application.class).profiles(profiles).run(args);
    }
}
